package com.shycloud.mido.member.api.feign;


import com.shycloud.mido.common.core.util.R;
import com.shycloud.mido.member.api.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


/**
 * @author npc
 * @date 2018/6/22
 */
@FeignClient(value="shycloud-organ-biz", configuration = FeignConfig.class)
public interface RemoteOrgService {

	/**
	 * 会员所属机构数量
	 * @param id
	 * @return
	 */
	@GetMapping("/member/getOrgNumber")
	Integer getOrgNumber(@RequestParam("id") String id);

	/**
	 * 查询会员纠错大师状态
	 * @param memberId 会员ID
	 * @return
	 */
	@PostMapping("/master/getStatus")
	 Boolean getStatus(@RequestParam("memberId") String memberId);

	/**
	 * 生成激活码
	 * @return
	 */
	@GetMapping("/master/v2/generateCode")
	R generateCode(@RequestParam("duration") Integer duration,
						 @RequestParam("num") Integer num,
						 @RequestParam("comment") String comment,
						 @RequestParam("comboId") Integer comboId);

	/**
	 * 生成激活码(运营商/机构)
	 * @return
	 */
	@GetMapping("/master/v2/genCode")
	R genCode(@RequestParam("duration") Integer duration,
			  @RequestParam("num") Integer num,
			  @RequestParam("comment") String comment,
			  @RequestParam("comboId") Integer comboId,
			  @RequestParam("optId") Integer optId,
			  @RequestParam("orgId") Integer orgId);

}
